Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't quote NO (or YES just for consistency) #559

Closed
wants to merge 1 commit into from

Conversation

dthaler
Copy link
Collaborator

@dthaler dthaler commented Oct 13, 2024

Fixes #558

print('\nstandard tag: '+(repr(ptag) if ptag in ('YES','NO','TRUE','FALSE', '0', '1', '2', '3') else ptag), file=fh)
print('\nstandard tag: '+(repr(ptag) if ptag in ('TRUE','FALSE', '0', '1', '2', '3') else ptag), file=fh)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot remove quotes from strings that are also ways of spelling Boolean values without changing semantics. This suggested change breaks YAML.

If we want to be consistent in where quotes appear, we could instead make an unconditional use of repr

@dthaler dthaler closed this Oct 15, 2024
@dthaler dthaler reopened this Oct 15, 2024
@dthaler dthaler closed this Oct 15, 2024
@tychonievich tychonievich mentioned this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong use of quote marks in one of the YAML files?
2 participants